<template>
  <el-inline-form
    label-size="default"
    :model="formInline"
    @do-search="handleSearch"
    @do-reset="handleReset"
  >
    <el-inline-form-item label="用户年龄" prop="age">
      <el-input v-model="formInline.age" placeholder="用户年龄" clearable />
    </el-inline-form-item>
    <el-inline-form-item label="申请人姓名" prop="user">
      <el-input v-model="formInline.user" placeholder="申请人姓名" clearable />
    </el-inline-form-item>
    <el-inline-form-item label="所在地区" prop="region">
      <el-select v-model="formInline.region" placeholder="地区" clearable>
        <el-option label="Zone one" value="shanghai" />
        <el-option label="Zone two" value="beijing" />
      </el-select>
    </el-inline-form-item>
    <el-inline-form-item label="激活时间" prop="date">
      <el-date-picker
        v-model="formInline.date"
        type="date"
        placeholder="激活时间"
        clearable
      />
    </el-inline-form-item>
  </el-inline-form>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'
const formInline = reactive({
  user: '',
  region: '',
  date: '',
  age: '',
})

const handleSearch = () => {
  console.log('doSearchHandle::', formInline)
}

const handleReset = () => {
  console.log('doResetHandle')
}
</script>
